﻿function start() {
 //       im.gainItem(2430558, -1);
		im.gainItem(4001832, RanDomNum(10, 100));
	//	im.player.dropMessage("获得了 100 个黑色羽毛!");

		im.used();
		im.dispose(); 
}

function randomNum(minNum, maxNum) {
    switch (arguments.length) {
        case 1:
            return parseInt(Math.random() * minNum + 1, 10);
            break;
        case 2:
            return parseInt(Math.random() * (maxNum - minNum + 1) + minNum, 10);
            break;
        default:
            return 0;
            break;
    }
}

function RanDomNum(Min, Max) {
						var A = Max - Min;
						var B = Math.random();
						var C = Min + Math.round(B * A);
						return C;
}